<?php
defined('IN_ADMIN') or exit('No permission resources.'); 
include $this->admin_tpl('header', 'admin');
?>

<div class="pad-10">
<form action="?m=wap&c=wap_admin&a=edit_template" method="post" id="myform">
 <div class="bk10"></div>
 <fieldset>
	<legend><?php echo L('parameter_config')?></legend>  
	<table width="100%"  class="table_form">
		<input type="hidden" name="type" value="<?php echo $template_info['type']?>">
	<?php if ($template_info['type'] == 0) {?>  
    <tr>
    <th width="120">栏目页模板名称</th>
    <input type="hidden" name="typeid" value="<?php echo $typeid; ?>">
    <td class="y-bg"><input type="text" class="input-text" name="template[list]" size="20" value="<?php echo $template_info['template']['list']; ?>"/>.html  不填则为默认模板</td>
    </tr>  
    <tr>
    <th width="120">内容页模板名称</th>
    <input type="hidden" name="typeid" value="<?php echo $typeid; ?>">
    <td class="y-bg"><input type="text" class="input-text" name="template[show]" size="20" value="<?php echo $template_info['template']['show']; ?>"/>.html  不填则为默认模板</td>
    </tr> 
    <?php 	}elseif ($template_info['type']==1) { ?>
	<tr>
    <th width="120">单页模板名称</th>
    <input type="hidden" name="typeid" value="<?php echo $typeid; ?>">
    <td class="y-bg"><input type="text" class="input-text" name="template[page]" size="20" value="<?php echo $template_info['template']['page']; ?>"/>.html  不填则为默认模板</td>
    </tr> 
    <?php }elseif ($template_info['type']==2) { ?>
	<tr>
    <th width="120">外链网址&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://</th>
    <input type="hidden" name="typeid" value="<?php echo $typeid; ?>">
    <td class="y-bg"><input type="text" class="input-text" name="template[url]" size="20" value="<?php echo $template_info['template']['url']; ?>"/></td>
    </tr> 
    <?php }?>                      
</table>

<div class="bk15"></div>
<input type="submit" id="dosubmit" name="dosubmit" class="dialog" value="<?php echo L('submit')?>" />
</fieldset>
</form>
</div>
</body>
</html>